﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Yto.Entities.Record
{
    [Serializable]
    public abstract class FullEntity : FullEntity<int>
    {
    }

    [Serializable]
    public abstract class FullEntity<T> : CreateAndModifyEntity<T>, IDeleter
    {
        [Column("ISDELETE")]
        [DefaultValue(false)]
        public virtual bool IsDelete { get; set; }

        [Column("DELETETIME")]
        public virtual DateTime? DeleteTime { get; set; }

        [Column("DELETERID")]
        public virtual long? DeleterId { get; set; }
    }
}
